/*
 * @Author: OreoWang
 * @Email: ihc523@163.com
 * @Date: 2020-06-01 12:05:23
 * @LastEditors: OreoWang
 * @LastEditTime: 2022-08-10 17:01:48
 * @Description: 数据模型定义
 */

import ViewModel, { ViewData } from "db://oreo-mvvm-assistant/core/ViewModel";
import IViewRender from "db://oreo-mvvm-assistant/core/IViewRender";
import TemplateController from "./TemplateController";
import TemplateView from "./TemplateView";

/**
 * 数据
 * @description 可参考 ExampleModel.ts 中的使用示例
 */
export class ModelData extends ViewData {
    key = "value";
}

/**
 * 模型
 * @description 可参考 ExampleModel.ts 中的使用示例
 */
 export default class TemplateModel extends ViewModel {
    compile(controller: TemplateController, view: TemplateView, data: ModelData): IViewRender{
        return {
            data: data,
            template: {},
            computed: {},
            watch: {}
        }
    }
}
